import React from 'react';
import Icon from 'react-native-vector-icons/AntDesign';
import { createBottomTabNavigator, createAppContainer } from 'react-navigation';
import HomeStack from "./HomeStack"
import SettingStack from "./SettingStack"
export default createAppContainer(createBottomTabNavigator(
    {
        Home: {
            screen: HomeStack,
            navigationOptions: ({ navigation }) => ({
                title: '订票',
                tabBarIcon: ({ focused, tintColor }) => (
                    <Icon name="tag" size={32} color={focused ? "#4F8EF7" : "gray"} />
                ),
            })
        },
        Settings: {
            screen: SettingStack,
            navigationOptions: ({ navigation }) => ({
                title: '我的',
                tabBarIcon: ({ focused, tintColor }) => (
                    <Icon name="team" size={32} color={focused ? "#4F8EF7" : "gray"} />
                ),
            })
        }
    },
    {
        tabBarOptions: {
            activeTintColor: '#4F8EF7',
            inactiveTintColor: 'gray',
        }
    }
));